<!DOCTYPE html>
<html lang="zh-CN" data-i18n-page-title="login">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 工作推荐App</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/auth.css">
</head>
<body class="page">
    <div class="page-content auth-page">
        <div class="back-button">
            <img src="../images/back.svg" alt="返回" class="back-icon">
            <span data-i18n="back">返回</span>
        </div>
        
        <div class="auth-header">
            <div class="logo-container">
                <img src="../images/app-logo.svg" alt="App Logo" class="app-logo">
            </div>
            <h1 data-i18n="login">登录账号</h1>
            <p data-i18n="welcome_back">欢迎回来，请登录您的账号</p>
        </div>
        
        <form id="login-form" class="auth-form">
            <div class="form-group">
                <label for="email" data-i18n="email">邮箱</label>
                <input type="email" id="email" class="form-control" data-i18n-placeholder="email" placeholder="请输入邮箱" required>
            </div>
            
            <div class="form-group">
                <label for="password" data-i18n="password">密码</label>
                <div class="password-input">
                    <input type="password" id="password" class="form-control" data-i18n-placeholder="password" placeholder="请输入密码" required>
                    <span class="toggle-password">
                        <img src="../images/eye.svg" alt="显示密码" class="eye-icon">
                    </span>
                </div>
            </div>
            
            <div class="form-options">
                <label class="remember-me">
                    <input type="checkbox" id="remember">
                    <span class="checkbox-label" data-i18n="remember_me">记住我</span>
                </label>
                <a href="#" class="forgot-password" data-i18n="forgot_password">忘记密码?</a>
            </div>
            
            <button type="submit" class="auth-button" id="login-button" data-i18n="login">登录</button>
            
            <div class="error-message" id="error-message"></div>
        </form>
        
        <div class="loading-overlay" id="loading-overlay">
            <div class="loading-spinner"></div>
            <p data-i18n="login_loading">登录中...</p>
        </div>
        
        <div class="auth-footer">
            <p><span data-i18n="no_account">还没有账号?</span> <a href="register.html" class="register-link" data-i18n="register_now">立即注册</a></p>
        </div>
    </div>

    <script src="../js/i18n.js"></script>
    <script src="../js/api.js"></script>
    <script src="../js/login.js"></script>
</body>
</html> 